<?php


namespace Part23_CommandMode\Code3;

require_once '../../autoload.php';

// 开店前的准备
$boy = new Barbecuer();
$command1 = new BakeMuttonCommand($boy);
$command2 = new BakeChickenWingCommand($boy);
$girl = new Waiter();

// 开门营业
$girl->setOrder($command1);
$girl->setOrder($command2);

// 点菜完毕，通知厨房
$girl->notify();